import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  mode: 'history',
  routes: [
    {
      path: '/auth',
      name: '授权',
      component: resolve => require(['@/view/auth'], resolve)
    },
    {
      path: '/redirect',
      name: '授权',
      component: resolve => require(['@/view/auth/redirect'], resolve)
    },
    {
      path: '/home',
      name: '首页',
      component: resolve => require(['@/view/home'], resolve)
    },
    {
      path: '/loading',
      name: '登录',
      component: resolve => require(['@/view/loading'], resolve)
    },
    {
      path: '/myAddr',
      name: '我的收货地址',
      component: resolve => require(['@/view/mine/myAddr'], resolve)
    }
  ]
})
